package cn.zdxiang.jmjetpackmvvm

import android.os.Bundle
import android.util.Log
import cn.zdxiang.base.base.BaseLazyVmFragment
import cn.zdxiang.base.base.DataBindingConfig

/**
 * @author       Jm
 * @date         2020/7/21 11:49
 * @description
 */
class HomeFragment : BaseLazyVmFragment() {

    override fun getDataBindingConfig(): DataBindingConfig? {
        return DataBindingConfig(R.layout.home_fragment)
    }

    override fun lazyInit() {
        Log.d("fuckyou", "lazyInit:${this.hashCode()}")
    }

    override fun onFragmentVisible() {
        Log.d("fuckyou", "onFragmentVisible:${this.hashCode()}")
    }

    companion object {
        /**
         * @param
         */
        @JvmStatic
        fun newInstance(): HomeFragment {
            return HomeFragment().also { fragment ->
                fragment.arguments = Bundle().also {
                    it.putString("params", "")
                }
            }
        }
    }
}